# 生成项目指令：
# cmake ..
# cmake -G "MinGW Makefiles" ..
# cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ..\..
# cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..\..

# 编译指令：
# mingw32-make
# make

# 清理编译文件：
# mingw32-make clean

cmake_minimum_required (VERSION 3.20) 
set (CMAKE_C_COMPILER               "gcc")
set (CMAKE_C_FLAGS                  "-Wall")
set (CMAKE_C_FLAGS_DEBUG            "/Debug /Zi")
set (CMAKE_C_FLAGS_MINSIZEREL       "-Os -DNDEBUG")
set (CMAKE_C_FLAGS_RELEASE          "-O4 -DNDEBUG")
set (CMAKE_C_FLAGS_RELWITHDEBINFO   "-O2 /Debug")
set (CMAKE_C_STANDARD 11)

set (CMAKE_CXX_COMPILER             "g++")
set (CMAKE_CXX_FLAGS                "-Wall")
set (CMAKE_CXX_FLAGS_DEBUG          "/Debug /Zi")
set (CMAKE_CXX_FLAGS_MINSIZEREL     "-Os -DNDEBUG")
set (CMAKE_CXX_FLAGS_RELEASE        "-O4 -DNDEBUG")
set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 /Debug")

project (GameEngineFromScrath)
include_directories("${PROJECT_SOURCE_DIR}/Framework/Common")
include_directories("${PROJECT_SOURCE_DIR}/Framework/Interface")
add_subdirectory(Framework)
add_subdirectory(Empty)
add_subdirectory(Platform)

